home *** CD-ROM | disk | FTP | other *** search
Wrap
<?xml version="1.0" encoding="utf-8"?> <html><head><title>GetSystemTicks Function [Runtime]</title><meta name="filename" content="text/sbasic/common/03130700"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css"> p.P1{ } p.P2{ } span.T1{ font-weight:bold;} </style></head><body> <help:to-be-embedded Eid="getsystemticks" xmlns:help="http://openoffice.org/2000/help"> <p class="Head1"><help:link Id="66474">GetSystemTicks Function [Runtime]</help:link></p> <p class="Paragraph">Returns the system ticks provided by the operating system. The number of system ticks returned within a certain time frame is always dependent on the operating system. This function can be used to optimize certain processes.</p> </help:to-be-embedded> <p class="Paragraph"><span class="T1">Syntax</span>:</p> <p class="Paragraph">GetSystemTicks() <help:key-word value="GetSystemTicks" tag="kw66474_1" xmlns:help="http://openoffice.org/2000/help"/></p> <p class="Paragraph"><span class="T1">Return value</span>:</p> <p class="Paragraph">Long</p> <p class="P2">Example:</p> <p class="PropText">Sub ExampleWait</p> <p class="PropText">Dim lTick As Long</p> <p class="PropText">lTick = GetSystemTicks()</p> <p class="PropText">wait 2000</p> <p class="PropText">lTick = <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>(GetSystemTicks() - lTick)</p> <p class="PropText">MsgBox "" & <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>lTick & " Ticks" ,0,"The pause lasted"</p> <p class="PropText">End Sub</p> <p class="PropText"/> </body></html>